package com.tatesuke.tatescript.tree;

public class IntNode {

	private int value;

	public IntNode(int value) {
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof IntNode)) {
			return false;
		}

		int objValue = ((IntNode)obj).getValue();

		return this.value == objValue;
	}

	@Override
	public int hashCode() {
		return value;
	}

}
